package ru.sanluck.books;

import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class DefaultBookSearchService implements BookSearchService {

    private final BookCrudService bookCrudService;
    @Override
    public List<Book> searchBooks(String name) {
        return bookCrudService.getBooks(name);
    }
}
